<?php 
if(!empty($_POST) AND !isset($_POST['Entry']))
{
	$values = array($_POST['Ressource'], $_POST['einheiten']);
	UpdateUnion($values);
}
$result = UnionRequest();
?>
<form action="" method="post">
	<table class="Message">
		<tbody>
			<tr>
				<th /><td> Union-B&ouml;rse </td>
			</tr>
			<tr>
				<th>Titan</th>									<th>&Ouml;l</th>						<th>Benzin</th>
			</tr>
			<tr>
				<th><?php echo $result['Titan']; ?></th><th><?php echo $result['Oel']; ?></th><th><?php echo $result['Benzin']; ?></th>
			</tr>
			<tr>
				<th></th><td>Verkauf</td>
			</tr>
			<tr>
				<th>
					<select name="Ressource">
						<option value="Titan">Titan</option>
						<option value="Oel">&Ouml;l</option>
						<option value="Benzin">Benzin</option>
					</select>
				</th>
				<th>
					<input type="number" name="einheiten" value="0" min="0">
				</th>
				<th>
					<input type="submit" value="Antrag senden">
				</th>
			</tr>
		</tbody>
	</table>
</form>